package com.qf.air.search.dto;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 何星宇
 * @version V1.0
 * @Date 2021/11/9 22:17
 */
public class AirDTO {

    private Integer page = 1;

    private Integer rows = 5;

    private Integer districtId;

    private String monitoringStation;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    @Override
    public String toString() {
        return "AirDTO{" +
                "page=" + page +
                ", rows=" + rows +
                ", districtId=" + districtId +
                ", monitoringStation='" + monitoringStation + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                '}';
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getDistrictId() {
        return districtId;
    }

    public void setDistrictId(Integer districtId) {
        this.districtId = districtId;
    }

    public String getMonitoringStation() {
        return monitoringStation;
    }

    public void setMonitoringStation(String monitoringStation) {
        this.monitoringStation = monitoringStation;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
}
